package com.xiaochong.tir.api.service.hc;

/**
 * @author qzw
 * 2018年10月24日 下午2:57:26
 * @description 
 **/
public class ApiHcResult<T> {

	public String code;//返回码
	
	public String msg;//返回信息
	
	public T data;//返回数据

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	
	public enum Return{
		SUCCESS("00","请求成功"),
		FAIL("02","请求失败"),
		ERROR("01","参数错误");
		
		Return(String returnCode, String returnMsg) {
			this.returnCode = returnCode;
			this.returnMsg = returnMsg;
		}
		
		public String returnCode;//返回码
		
		public String returnMsg;//返回信息

		public String getReturnCode() {
			return returnCode;
		}

		public void setReturnCode(String returnCode) {
			this.returnCode = returnCode;
		}

		public String getReturnMsg() {
			return returnMsg;
		}

		public void setReturnMsg(String returnMsg) {
			this.returnMsg = returnMsg;
		}
		
	}
}
